//
//  StockItem.swift
//  SlaughterClient
//
//  Created by zwb on 2023/4/8.
//  Copyright © 2023 zwb. All rights reserved.
//

import Foundation
import ObjectMapper

public struct ZyaStockItem: Mappable {
    
    private struct SerializationKeys {
        static let idKey = "id_key"
        static let unit = "z_goods_unit"
        static let groupId = "z_group_id"
        static let amount = "z_amount"
        static let number = "z_number"
        static let name = "z_goods_nm"
        static let rn = "rn"
    }
    
    public var idKey: Int?
    public var unit: String?
    public var groupId: Int?
    public var amount: String?
    public var number: String?
    public var name: String?
    public var zGoodsNm: String?
    public var rn: Int?
  
    public init?(map: Map){
        
    }
    
    public mutating func mapping(map: Map) {
        idKey <- map[SerializationKeys.idKey]
        unit <- map[SerializationKeys.unit]
        groupId <- map[SerializationKeys.groupId]
        amount <- (map[SerializationKeys.amount],StringTransform_test())
        number <- (map[SerializationKeys.number],StringTransform())
        name <- map[SerializationKeys.name]
        rn <- map[SerializationKeys.rn]
    }
    
}
